home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_4.lha / 3_4 / 3_4b.c < prev    next >
Text File  |  1993-08-08  |  334b  |  17 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. lass x
  6.  
  7.  int i;
  8. ublic:
  9.  x() { i = 0; }
  10.  next() { return ++i; }
  11.  y;
  12. / . . .
  13. include <stdio.h>    /* DELETE */
  14. ain() {        /* DELETE */
  15. rintf("%d %d\n", y.next(), y.next());
  16. eturn 0; }        /* DELETE */
  17.